Skip to content

JsonPath as concept #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 27, 2024
Merged

JsonPath as concept #59

merged 11 commits into from
Jun 27, 2024

Conversation

jbee
Copy link
Collaborator

@jbee jbee commented Jun 27, 2024

Summary

Elevates paths to navigate through a JSON tree to a encapsulated concept JsonPath which has refined rules/semantics to avoid clashes between the path syntax and using symbols used for syntax in the path.

The exact rules/semantics are outlined in the javadoc of the JsonPath type.

Most importantly a path can now use curly brackets and dots, some examples of literal names and how path encode them

  • . = {.}
  • with.dot = {with.dot}
  • {something} = .{something}

Automatic Tests

New tests were added for all affected methods (I could think of)

@jbee jbee self-assigned this Jun 27, 2024
@jbee jbee merged commit 7c569d5 into dhis2:main Jun 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant